package com.kitty.game.npc.service.appreace;

import com.kitty.game.config.NPC;
import com.kitty.game.npc.message.RespNpcContent;
import com.kitty.game.role.message.RespAppear;
import com.kitty.game.role.message.RespUpdateAppearance;
import com.kitty.game.role.model.Role;
import org.springframework.stereotype.Component;

@Component
public class DevilAppearanceHandler extends AppearanceHandler {
    @Override
    public void changeRespAppear(Role role, NPC npc, RespAppear respAppear) {
//        DevilFirstHistory devilFirstHistory = DataCache.DEVIL_FIRST_HISTORIES.get(npc.getId());
//        if (devilFirstHistory != null) {
//            respAppear.setTitle(devilFirstHistory.getName());
//            respAppear.setIcon(devilFirstHistory.getIcon());
//        }
    }

    @Override
    public void changeRespUpdateAppearance(Role role, NPC npc, RespUpdateAppearance respUpdateAppearance) {
//        DevilFirstHistory devilFirstHistory = DataCache.DEVIL_FIRST_HISTORIES.get(npc.getId());
//        if (devilFirstHistory != null) {
//            respUpdateAppearance.setTitle(devilFirstHistory.getName());
//            respUpdateAppearance.setIcon(devilFirstHistory.getIcon());
//        }
    }

    @Override
    public void changeRespNpcContent(Role role, NPC npc, RespNpcContent respNpcContent) {
//        DevilFirstHistory devilFirstHistory = DataCache.DEVIL_FIRST_HISTORIES.get(npc.getId());
//        if (devilFirstHistory != null) {
//            respNpcContent.setNpcIcon(devilFirstHistory.getIcon());
//        }
    }
}
